<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>联系人编辑</title>
<LINK href="<%=basePath%>/css/top.css" type=text/css rel=stylesheet />
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">
</head>
<BODY topmargin="5">
<form name="Form1" method="get" action="ContactsServlet" id="Form1">
<div><input type="hidden" name="contacts" id="__VIEWSTATE"
	value="edit" /></div>
<table border="0" width="100%" cellspacing="0" cellpadding="3"
	class="small">
	<tr>
		<td class="Big"><img src="<%=basePath%>/img/office/address.gif"
			align="absMiddle"><span class="big3">新建联系人(默认)</span><br>
		</td>
	</tr>
</table>
<div align="center"><input type="button" value="新建联系人"
	class="BigButton"
	onClick="location.href='<%=basePath%>/page/office/Contacts/address_new.jsp'"
	title="在“默认”分组中创建新的联系人，录入相关信息" /></div>
<table border="0" width="100%" cellspacing="0" cellpadding="3"
	class="small">
	<tr>
		<td class="Big"><img src="<%=basePath%>/img/office/address.gif"
			align="absMiddle"><span class="big3">管理联系人(默认)</span></td>
	</tr>
</table>
<table border="0" cellspacing="1" width="95%" class="small"
	bgcolor="#000000" cellpadding="3">
	<thead class="TableHeader">
		<td nowrap align="center">姓名</td>
		<td nowrap align="center">性别</td>
		<td nowrap align="center">单位电话</td>
		<td nowrap align="center">家庭电话</td>
		<td nowrap align="center">手机 <a href="javascript:send_mobile()"></a></td>
		<td nowrap align="center">电子邮件</td>
		<td nowrap align="center">操作</td>
	</thead>
	<c:forEach items="${contactsVo}" var="a">
		<tr class="TableLine1">
			<td nowrap align="center"><c:out value="${a.personName}"></c:out>
			<a href="javascript:add_detail('1');"></a></td>
			<td nowrap align="center"><c:out value="${a.personSex}"></c:out></td>
			<td nowrap align="center"><c:out value="${a.unitPhone}"></c:out></td>
			<td nowrap align="center"><c:out value="${a.familyPhone}"></c:out></td>
			<td nowrap align="center"><c:out value="${a.personMobile}"></c:out><a
				target="_blank" title="发送手机短信" href=""></a></td>
			<td nowrap align="center"><c:out value="${a.personEmail}"></c:out><a
				href="mailto:"></a></td>
			<td nowrap align="center" width="100"><a
				href="ContactsServlet?contacts=edit&&personId=${a.personId}"> 详情</a>
			<a href=""> 编辑</a> <a href=> 删除</a></td>
		</tr>
	</c:forEach>
</table>
</form>
</BODY>
</html>